﻿using System;

namespace ToyChat
{
    /// <summary>
    /// This class is used to store informations about a user in the database
    /// </summary>
    public interface IUserInfo
    {
        /// <summary>
        /// The email of the user
        /// </summary>
        string Email { get; set; }

        /// <summary>
        /// The hashed password of this user
        /// </summary>
        string PassHash { get; set; }

        /// <summary>
        /// The username of this user
        /// </summary>
        string Username { get; set; }

        /// <summary>
        /// The <see cref="PermissionFlags"/> of this user
        /// </summary>
        PermissionFlags Permissions { get; set; }

        /// <summary>
        /// Gets or Sets the nickname of this info
        /// </summary>
        string Nickname { get; set; }
    }
}
